package org.nfIt.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.nfIt.dto.product.CategoryBrandDto;
import org.nfIt.entity.product.Brand;
import org.nfIt.entity.product.CategoryBrand;

import java.util.List;

/**
 * ClossName:CategoryBrandMapper
 * Pakage:org.nfIt.mapper
 * Description
 *
 * @Author L
 * @Create 2024/8/19 19:49
 * @Version 2023.1.3
 */
@Mapper
public interface CategoryBrandMapper {
    /**
     * 分类品牌条件查询
     * @param categoryBrandDto 查询条件
     */
    List<CategoryBrand> findByPage(CategoryBrandDto categoryBrandDto);

    /**
     * 添加品牌
     */
    void save(CategoryBrand categoryBrand);

    //    根据分类id查询对应的品牌数据
    List<Brand> findBrandByCategoryId(Long categoryId);
}
